<html>
	<body>
        <div id="app">
            <button v-on:click="myclick()">提交</button>
        </div>
    </body>
</html>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    let app = new Vue({
        el: '#app',
        data: {
            numbers: 0,
            videos: []
        },
        methods: {
            myclick: function() {
                $.ajax({
                    url: "http://192.168.122.137:9090/video",
                    type: "get",
                    context: this,//这里是将vue对象传入ajax作为this对象
                    success: function(result,status,xhr) {//请求成功后的处理函数
                        this.videos = result;
                    	alert(result);
                	}
                })
            }
        }
    });
</script>